import java.util.Arrays;

public class TextNM3 {
    public static void main(String[] args){
        int[] array={27,15,19,18,28,34,65,49,25,37};
        NM3 nm3=new NM3();
        nm3.inArray(array);
        nm3.createHeap();
        //nm3.offer(80);
//        nm3.pop();
        nm3.heapSort();
        System.out.println("堆排序后(升序): " +
                Arrays.toString(Arrays.copyOf(nm3.elem, nm3.usedSize)));



    }

}
